<?php

use think\Route;

Route::domain('api', 'api');
// Route::rule(':version/login/:id', 'api/:version.User/read');

// Route::rule('add', 'api/Login/add');

// //登录
// Route::rule('denglu', 'api/Login/denglu');

// //添加
// Route::rule('Beautyadd', 'api/Beauty/add');

// //列表
// Route::rule('Beautylist', 'api/Beauty/Beautylist');

// //修改
// Route::rule('BeautyEdit/:id', 'api/Beauty/BeautyEdit');

// //删除
// Route::rule('Delete/:id', 'api/Beauty/Delete');

// //查询详情
// Route::rule('Beautygetid/:id', 'api/Beauty/getID');

// Route::rule('getyuce', 'api/Login/getyuce');

// Route::rule('Getclassify', 'api/ffc/Getclassify');
Route::rule('Saves', 'api/Txffc/Saves');

Route::rule('send', 'api/Txffc/swoole');

// //登录
Route::rule('login', 'api/Login/Login');
// 用户接口

// crud  用户
Route::rule('useradd', 'api/User/add');
Route::rule('useredit', 'api/User/edit');
Route::rule('userlist', 'api/User/index');
Route::rule('userdelete', 'api/User/delete');

// crud  部门
Route::rule('deptadd', 'api/Dept/add');
Route::rule('deptedit', 'api/Dept/edit');
Route::rule('deptlist', 'api/Dept/index');
Route::rule('deptdelete', 'api/Dept/delete');
Route::rule('Deptgetid', 'api/Dept/getID');

Route::rule('Createtree', 'api/Dept/Createtree');

// crud  权限
Route::rule('roleadd', 'api/Role/add');
Route::rule('roleedit', 'api/Role/edit');
Route::rule('rolelist', 'api/Role/index');
Route::rule('roledelete', 'api/Role/delete');
Route::rule('rolegetID', 'api/Role/getID');

// crud  资源
Route::rule('resourceadd', 'api/Resource/add');
Route::rule('resourceedit', 'api/Resource/edit');
Route::rule('resourcelist', 'api/Resource/index');
Route::rule('resourcedelete', 'api/Resource/delete');

// crud  菜单
Route::rule('menuadd', 'api/Menu/add');
Route::rule('menuedit', 'api/Menu/edit');
Route::rule('menulist', 'api/Menu/index');
Route::rule('menudelete', 'api/Menu/delete');
Route::rule('CreateMenutree', 'api/Menu/Createtree');

Route::rule('index', 'api/Index/index');
